package com.aurora.app.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.aurora.app.entity.CategoryThing;
/**
 * 全app唯一入口
 * @author yongjiang.lin
 *
 */
@Controller
@RequestMapping(value = "api/main")
public class MainController {
	@RequestMapping()
	public ModelAndView main(HttpServletRequest request){
		ModelAndView mv = new ModelAndView("main");
		String reHref = request.getParameter("reHref");
		if(StringUtils.isNotBlank(reHref)){
			mv.addObject("reHref", reHref);
		}
		return mv;
	}
}
